using MvcMall.AdminPortal.Controllers.MailTemplate.ViewModels;
using MvcMall.Framework.Mapper;

namespace MvcMall.AdminPortal.Controllers.MailTemplate.Mappers
{
    public class MailTemplateModelMapper : BaseMapper<Core.Domains.MailTemplate, MailTemplateDtoModel>, IMapper<Core.Domains.MailTemplate, MailTemplateDtoModel>
    {
        public override MailTemplateDtoModel MapFrom(Core.Domains.MailTemplate input)
        {
            var model = base.MapFrom(input);
            model.MailTemplateId = input.Id;
            return model;
        }
    }
}